# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-enhancements
_pkgname=enhancements
pkgver=0.4.0
pkgrel=5
pkgdesc='Python library which extends various python classes.'
arch=('any')
url='https://pypi.org/project/enhancements/#files'
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('bfcb673f8d09d8b14bf37cd761223228427b0d12cf16f731bdab4f1bd7efacee759874d5950a927a9e91f7208262db89370afb09944f34ce9b111279ed632c0e')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

